import {Base} from '../../utils/base';
class Home extends Base{


  getBannerList(callBack){
    var params = {
      url:'banner/list',
      sCallBack:function(res){ callBack && callBack(res.data) }
    }
    this.request(params);
  }

  getMenuList(callBack){
    var params = {
      url:'menu/list',
      sCallBack:function(res){ callBack && callBack(res.data) }
    }
    this.request(params);
  }
  getGoodsList(callBack){
    var params = {
      url:'goods/new',
      sCallBack:function(res){ callBack && callBack(res.data) }
    }
    this.request(params);
  }
}
export {Home}